package com.aizhixin.lab.course.course.repository;

import com.aizhixin.lab.course.course.entity.CourseChapterAtt;
import io.swagger.models.auth.In;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CourseChapterAttRepository extends JpaRepository<CourseChapterAtt, Long> {
    CourseChapterAtt findByIdAndDeleteFlag(Long id, Integer deleteFlag);
    List<CourseChapterAtt> findByChapterIdAndDeleteFlagOrderByNo(Long chapterId, Integer deleteFlag);
    List<CourseChapterAtt> findByChapterIdAndTypeAndDeleteFlagOrderByNo(Long chapterId, Integer type, Integer deleteFlag);
    Integer countByDeleteFlag(Integer deleteFlag);

}
